import java.io.IOException;
import java.io.UTFDataFormatException;
import java.nio.charset.Charset;
import java.util.Iterator;
import java.util.SortedMap;

import protocol.IRCprotocol;
import protocol.IRCserverDB;
import protocol.Protocol;
import server.Listener;
import tokenizer.NewLineTokenizer;

/*
public class main {
*/
	/**
	 * @param args
	 */ /*
	public static void main(String[] args) {
		Listener listener = new Listener(6669);
		Protocol prot = createProtocol();
		/*SortedMap<String, Charset> map = Charset.availableCharsets();
		System.out.println(map.get("UTF-8").equals(Charset.defaultCharset()));
		Iterator<String> it = map.keySet().iterator();
		while(it.hasNext())
		{
			String temp = it.next();
			System.out.println(temp);
		}*/
		/*
		try {
			listener.Listen(createProtocol());
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}

	private static Protocol createProtocol() {
		SortedMap<String, Charset> map = Charset.availableCharsets();
		return new IRCprotocol(new IRCserverDB(), new NewLineTokenizer("T",map.get("UTF-8")));
	}

}
*/